package com.smart.manager.member.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.member.entities.enums.SaleBill;
import com.smart.manager.member.entities.views.MemberPigView;
import com.smart.manager.member.entities.views.MemberView;
import com.smart.manager.product.entities.enums.PigStatus;
import com.smart.manager.product.entities.views.BasicPigstyView;
import com.smart.manager.product.entities.views.BasicRfidView;
import com.smart.manager.product.entities.views.PigBreedView;
import com.smart.manager.product.entities.views.PigLevelView;
import com.smart.manager.work.views.BasicStaffView;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * 猪仔管理  -- 完整的猪
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
public class MemberPigSaleBill extends BaseLongModel {


    @ApiModelProperty(value = "玩家ID")
    private MemberView memberId;

    @ApiModelProperty(value = "交易类型")
    private SaleBill saleBill;

    @ApiModelProperty(value = "猪ID")
    private MemberPigView pigId;

    @ApiModelProperty(value = "售卖id")
    private Long saleId;

    @ApiModelProperty(value = "交易价格")
    private BigDecimal price;

    @ApiModelProperty(value = "交易时间")
    private LocalDateTime transactionTime;


}
